﻿@using FCTC_Web.Models
@model FCTC_Web.Utilities.Page<SessionUnit>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("创建", "Create")
</p>
<table>
    <tr>
        <th>
            组名
        </th>
        <th>
            Title
        </th>
        <th>
            Description
        </th>
        <th>
            UpdateTime
        </th>
        <th>
            UpdatedUser
        </th>
        <th>
            State
        </th>
        <th>
            Sequense
        </th>
        <th></th>
    </tr>

@foreach (var item in Model.CurrentRecords) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UnitName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UpdateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UpdatedUser)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.State)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Sequense)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详细信息", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
@Html.Pager(Model, "/SessionUnit/Index")